package com.jintu.portal.pojo.dto;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by junhu on 2017/10/08.
 */
public class CompanyOrderTotalDto implements Serializable {

    private Long payMoney;//收款金额（汇总）
    private String payMoneyTotalText;
    private Long refundMoney;//退款金额（汇总）
    private String refundMoneyTotalText;
    private Long poundage;//收款手续费（汇总）
    private String poundageTotalText;
    private Long stagingInterest;//分期手续费（汇总）
    private String stagingInterestTotalText;
    private Long realEnterMoney;//实际入账（汇总）
    private String realEnterMoneyTotalText;
    private Long payCount;//收款笔数
    private Long refundCount;//退款笔数
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public CompanyOrderTotalDto() {

    }

    public CompanyOrderTotalDto(Long payMoney, Long poundage, Long stagingInterest, Long realEnterMoney) {
        this.payMoney = payMoney == null ? 0 : payMoney;
        this.poundage = poundage == null ? 0 : poundage;
        this.stagingInterest = stagingInterest == null ? 0 : stagingInterest;
        this.realEnterMoney = realEnterMoney == null ? 0 : realEnterMoney;
    }

    public CompanyOrderTotalDto(Long payMoney, Long count) {
        this.payMoney = payMoney == null ? 0 : payMoney;
        this.payCount = count == null ? 0 : count;
        this.refundCount = count == null ? 0 : count;
    }

    public Long getPayMoney() {
        if(null == this.payMoney){
            this.payMoney=0l;
        }
        return payMoney;
    }

    public void setPayMoney(Long payMoney) {
        this.payMoney = payMoney;
    }

    public String getPayMoneyTotalText() {
        return payMoneyTotalText;
    }

    public void setPayMoneyTotalText(String payMoneyTotalText) {
        this.payMoneyTotalText = payMoneyTotalText;
    }

    public Long getRefundMoney() {
        if(null == this.refundMoney){
            this.refundMoney=0l;
        }
        return refundMoney;
    }

    public void setRefundMoney(Long refundMoney) {
        this.refundMoney = refundMoney;
    }

    public String getRefundMoneyTotalText() {
        return refundMoneyTotalText;
    }

    public void setRefundMoneyTotalText(String refundMoneyTotalText) {
        this.refundMoneyTotalText = refundMoneyTotalText;
    }

    public Long getPoundage() {
        if(null == this.poundage){
            this.poundage=0l;
        }
        return poundage;
    }

    public void setPoundage(Long poundage) {
        this.poundage = poundage;
    }

    public String getPoundageTotalText() {
        return poundageTotalText;
    }

    public void setPoundageTotalText(String poundageTotalText) {
        this.poundageTotalText = poundageTotalText;
    }

    public Long getStagingInterest() {
        if(null == this.stagingInterest){
            this.stagingInterest=0l;
        }
        return stagingInterest;
    }

    public void setStagingInterest(Long stagingInterest) {
        this.stagingInterest = stagingInterest;
    }

    public String getStagingInterestTotalText() {
        return stagingInterestTotalText;
    }

    public void setStagingInterestTotalText(String stagingInterestTotalText) {
        this.stagingInterestTotalText = stagingInterestTotalText;
    }

    public Long getRealEnterMoney() {
        if(null == this.realEnterMoney){
            this.realEnterMoney=0l;
        }
        return realEnterMoney;
    }

    public void setRealEnterMoney(Long realEnterMoney) {
        this.realEnterMoney = realEnterMoney;
    }

    public String getRealEnterMoneyTotalText() {
        return realEnterMoneyTotalText;
    }

    public void setRealEnterMoneyTotalText(String realEnterMoneyTotalText) {
        this.realEnterMoneyTotalText = realEnterMoneyTotalText;
    }

    public Long getPayCount() {
        if(null == this.payCount){
            this.payCount=0l;
        }
        return payCount;
    }

    public void setPayCount(Long payCount) {
        this.payCount = payCount;
    }

    public Long getRefundCount() {
        if(null == this.refundCount){
            this.refundCount=0l;
        }
        return refundCount;
    }

    public void setRefundCount(Long refundCount) {
        this.refundCount = refundCount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
